import React, { Component } from 'react';

import router from 'umi/router';
import ProDetail from '@/pages/components/Problem/ProblemPage/ProDetail';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';

class Problem extends Component {
  onModifyData = data => {
    router.push(`/hrmanage/recordservice/update?rcrdSerHdlId=${data.busiId}`);
  };

  onViewDetails = data => {
    router.push(`/hrmanage/recordservice/detail?rcrdSerHdlId=${data.busiId}`);
  };

  render() {
    return (
      <PageHeaderWrapper>
        <ProDetail onModifyData={this.onModifyData} onViewDetails={this.onViewDetails} />
      </PageHeaderWrapper>
    );
  }
}

export default Problem;
